﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopCoupon")]
    public class TopCoupon : BaseObject
    {
        //begin
        public TopCoupon()
        {}
        public TopCoupon(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _CouponId;
        public string CouponId
        {
            get
            {
                return _CouponId;
            }
            set
            {
                SetPropertyValue("CouponId", ref _CouponId, value);
            }
        }
        private long _Denominations;
        public long Denominations
        {
            get
            {
                return _Denominations;
            }
            set
            {
                SetPropertyValue("Denominations", ref _Denominations, value);
            }
        }
        private DateTime _CreatTime;
        public DateTime CreatTime
        {
            get
            {
                return _CreatTime;
            }
            set
            {
                SetPropertyValue("CreatTime", ref _CreatTime, value);
            }
        }
        private DateTime _EndTime;
        public DateTime EndTime
        {
            get
            {
                return _EndTime;
            }
            set
            {
                SetPropertyValue("EndTime", ref _EndTime, value);
            }
        }
        private long _Condition;
        public long Condition
        {
            get
            {
                return _Condition;
            }
            set
            {
                SetPropertyValue("Condition", ref _Condition, value);
            }
        }
        private string _CreateChannel;
        public string CreateChannel
        {
            get
            {
                return _CreateChannel;
            }
            set
            {
                SetPropertyValue("CreateChannel", ref _CreateChannel, value);
            }
        }
        //end
    }
}
